package com.sunshine.spring.beans.name;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: WeiHong
 * @Date: 2017/3/17 17:04
 */
public class App {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("/spring/beans.xml");
        Home home = (Home) context.getBean("home");
        System.out.println(home.toString());
    }
}
